﻿using CommunityToolkit.Mvvm.DependencyInjection;
using FantomNext.Factories;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FantomNext
{
    public partial class App
    {
        private void RegisterIoc()
        {
            var coll = new ServiceCollection();
            coll.AddSingleton<FantomShapeFactory>();
            coll.AddSingleton<ShapeFactory>();
            coll.AddSingleton<ShapePresenterFactory>();

            Ioc.Default.ConfigureServices(coll.BuildServiceProvider());
        }
    }
}
